#include<iostream>
#include<thread>
using namespace std;

void Print(int n)
{
	for (int i = 0; i < n; i++)
	{
		cout << i <<endl;
	}
	cout << endl;
}

int main()
{
	thread t1(Print, 100);

	cout << t1.get_id() << endl;
	t1.join();
	
	cout << this_thread::get_id() << endl;
	return 0;
}